package com.cherkashyn.vitaliy.devices.ethernet.socket3.exceptions;


/**
 * module answer with error Token ( can't recognize the answer - too short, too long or absent )
 * @author technik
 *
 */
public class ResponseTokenException extends ModuleExchangeException{

    private static final long serialVersionUID = 1L;
    
    private final byte[] response;
    
    public ResponseTokenException(byte[] response){
	this.response=response;
    }

    /**
     * @return - response from remote module 
     */
    public byte[] getErrorResponse() {
        return response;
    }
    

}
